<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>5.3 Date 类型</title>
    <script>
        let date1 = new Date(2005, 4, 31, 8, 30, 50);
        console.log(date1);

        let date2 = new Date(Date.UTC(2017, 8, 21, 13, 34, 59, 30));
        console.log(date2);

        let now = Date.now();
        console.log(now);

        let now2 = +new Date(); // 把字符串转换为数字
        console.log(now2);
        console.log('--------------------------');
        let date = new Date();
        console.log(date.getTime());
        console.log();
        console.log();
        console.log();

    </script>
</head>
<body>

</body>
</html>